package com.spring.future.modules.sys.service;

import com.spring.future.common.utils.Const;
import com.spring.future.modules.sys.domain.Menus;
import com.spring.future.modules.sys.mapper.MenusMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by zh on 2017/1/15.
 */
@Service
public class MenusService {
    @Autowired
    private MenusMapper menusMapper;

    public List<Menus> findFirsy(){
        return menusMapper.findFirsy(Const.FIRST_DEFULT_MENU);
    }


    public List<Menus> findByParentId(String parentId){
        return menusMapper.findByParentId(parentId);
    }
}
